package com.bowen.demo.oom;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * <h3>java-study</h3>
 * <p>创建本地线程内存溢出</p>
 * @author : zhang.bw
 * @date : 2021-03-25 11:23
 **/
public class UnableCreateNativeThreadError {

	public static void main(String[] args) {
		while (true){
			Executor pool = Executors.newCachedThreadPool();
			pool.execute(()-> System.out.println("猿码天地"));
		}

	}
}
